<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Welcome extends Controller{

	private $template = 'template-multiflex';
	private $homeView = ''; 
	
	
	public function action_index()
	{
		$this->homeView = View::factory($this->template);
		
		$this->homeView->title = __('Systole - 1.0 | Sistema de Gesti&oacute;n de Curvas de Variabilidad de Distensi&oacute;n Arterial');
		$this->homeView->header = View::factory("template-sections/header-multiflex")->render();
		$this->homeView->sidebar = View::factory("template-sections/navigation-sidebar");
		//$this->homeView->content = View::factory("template-sections/content-multiflex")->render();
		$this->homeView->content = "";
		$this->homeView->footer = View::factory("template-sections/footer-multiflex")->render();
		
		$styles = array(
				'media/css/mf4_layout2_setup.css' => 'screen, projection, print',
				'media/css/mf4_layout2_text.css'  => 'screen, projection, print',
				'media/css/redmond/jquery-ui-1.7.1.custom.css' => 'screen, projection',
				'media/css/jqgrid/ui.jqgrid.css' => 'screen, projection',
				/*'media/css/uploadify/uploadify.css' => 'screen, projection',*/
				'media/css/uploadify/uploadify-2.1.4.css' => 'screen, projection',
				'media/css/jqplot/jquery.jqplot.css' => 'screen, projection',
				'media/css/redmond/ui.datepicker.css' => 'screen, projection',
				'media/js/fancybox/jquery.fancybox-1.3.4.css' => 'screen, projection',
				'media/css/diastole.css' => 'screen, projection',
				'media/css/custom_css.css'=>'screen,projection', //a removerse
				'media/css/report_preview.css'=>'screen,projection,print'
		);
	  
		$scripts = array(
				'media/js/jquery-1.4.3.min.js',
				'media/js/jqueryui/ui.core.min.js',
				'media/js/jqgrid/i18n/grid.locale-sp.js',
				'media/js/jqgrid/jquery.jqGrid.min.js',
				/*'media/js/uploadify/jquery.uploadify.js',*/
				'media/js/jqueryui/ui.datepicker.min.js',
				'media/js/fancybox/jquery.fancybox-1.3.4.pack.js',
				'media/js/diastole_core_multiflex.js',
		);
		
		$this->homeView->styles = $styles;
		$this->homeView->scripts = $scripts;
		
		$this->request->response = $this->homeView->render();
			
	}
} // End Welcome
